package com.zhiy.com.estation.ui.fragment.updata;

import com.zhiy.com.estation.api.ApiResult;
import com.zhiy.com.estation.model.User;
import com.zhiy.com.estation.ui.base.BaseModel;
import com.zhiy.com.estation.ui.base.BasePresenter;
import com.zhiy.com.estation.ui.base.BaseView;

import java.util.HashMap;

import io.reactivex.Flowable;

/**
 * Created by Zyh on 2016/12/6.
 */
public interface UpdataContract {
    interface  Model extends BaseModel{
        public abstract Flowable<ApiResult<User>> updata(HashMap<String,String> map);
    }
    interface View extends BaseView{
        public abstract void isUpdataSuccess(User user);
        public abstract void isFailure();
        public abstract void showMsg(String msg);
    }
    public abstract class Presenter extends BasePresenter<Model,View> {
        protected abstract void updata(HashMap<String,String> map);

    }
}
